package com.gl.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by GAOL on 2017/5/12.
 * #自定义属性类 实现Component注解 其他类注入
 * #以custom开头的自定义属性
 */
@Component
@ConfigurationProperties(prefix = "custom")
public class CustomProperties {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
